<?php
/**
 * Database Configuration Override
 * Config database parameters  
 */

return array(
	/** Doctrine Config */
	'doctrine' => array(
        'connection' => array(
            // default connection name
            'orm_default' => array(
                'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
                'params' => array(
                    'host'     => 'localhost',
                    'port'     => '3306',
                    'user'     => 'root',
                    'password' => '123456',
                    'dbname'   => 'stock',
					'charset'  => 'utf8', // extra
					'driverOptions' => array(
							1002=>'SET NAMES utf8'
					)
                )
            )
        )
    ),
	/** Zend DB */
	'db' => array(
        'username' => 'root',
        'password' => '123456',
        'driver' => 'Pdo_Mysql',
        'dsn' => 'mysql:dbname=stock;host=localhost',
        'driver_options' => array(
            PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'"
        )
    ),
	'dbAdapter' => array(
        'driver' => 'Pdo_Mysql',
        'database' => 'stock',
        'username' => 'root',
        'password' => '123456'
    ),
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory'
        )
    ),
);